package util;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

public class ListenerFasesJSF implements PhaseListener{

	private static final long serialVersionUID = 1L;

	public void beforePhase(PhaseEvent fase) {
		System.out.println("INFO: Depois Fase: "+fase.getPhaseId());
	}
	
	public void afterPhase(PhaseEvent fase) {
		System.out.println("INFO: Antes Fase: "+fase.getPhaseId());
	}

	public PhaseId getPhaseId() {
		return PhaseId.ANY_PHASE;
		
	}
	
	
	
}
